#include<stdio.h>
/**
Sample Input
2
3 4
5 6
Sample output
7
11
*/
int main() {
    int a,b;
    int n;
    scanf("%d",&n);
    while(n--){
        scanf("%d%d",&a,&b);
        printf("%d\n",a+b);
    }
    return 0;
}
